<template>
  <div>
    <heard :topshow="topshow" :cont="cont" />
    <!-- 头部 -->
    <div class="productimg">
      <div>
      <p class="jiejue">解决方案</p>
       <p class="count" >票芊芊面向丰富的业务场景，提供专业的解决方案</p>
      </div>

    </div>
    <!-- 蓝框部分 -->
    <div class="flx absi">
      <div
        :class="i == 1 ? 'dibosg' : 'dibosg1'"
        v-for="(item, i) in mood.numimg"
        :key="i"
      >
        <div class="flx mar">
          <img :src="item.img" alt="" class="item-icon" />
          <div>
            <div class="item-value">{{ item.title }}</div>
            <div class="item-name">{{ item.cont }}</div>
          </div>
        </div>
      </div>
    </div>
    <!-- 方案优势 -->
    <div class="module-wrap">
      <p class="module-title1">方案优势</p>
      <div class="module-list">
        <div class="module-item" v-for="(item, i) in mood.programme" :key="i">
          <img :src="item.img" alt="" class="module-icon" />
          <div class="module-text">
            <p class="module-title" style="margin: 0">{{ item.title }}</p>
            <p class="module-desc" style="margin: 0">
              {{ item.cont }}
            </p>
          </div>
        </div>
      </div>
    </div>
    <!-- 热门行业 -->
    <div class="hot">
      <p class="hot-title1">热门行业解决方案</p>
      <div class="flxss">
        <div
          class="hot-main"
          :style="'background:url' + '(' + mood.hot[0].img + ')'"
        >
          <div class="hot-text" style="margin-top: 159px; margin-left: 24px">
            <p class="hot-title">{{ mood.hot[0].title }}</p>
            <p class="hot-desc">
              {{ mood.hot[0].cont }}
            </p>
          </div>
        </div>
        <div class="mar">
          <div class="flxss">
            <div
              class="cases-list"
              v-for="(item, i) in mood.hot.slice(1, 4)"
              :key="i"
              style="margin-left: 10px"
            >
              <div class="cases-line">
                <div
                  class="case-item"
                  :style="'background:url' + '(' + item.img + ')'"
                >
                  <p class="case-title">{{ item.title }}</p>
                  <p class="case-desc">
                    {{ item.cont }}
                  </p>
                </div>
              </div>
            </div>
          </div>
          <div class="flxss">
            <div
              class="cases-list"
              v-for="(item, i) in mood.hot.slice(4, 6)"
              :key="i"
            >
              <div class="cases-line">
                <div
                  class="case-item1"
                  :style="'background:url' + '(' + item.img + ')'"
                  style="margin-left: 10px; margin-top: 10px"
                >
                  <p class="case-title">{{ item.title }}</p>
                  <p class="case-desc">
                    {{ item.cont }}
                  </p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 构架图 -->
    <div>
      <p class="hot-title1">解决方案架构图</p>
      <div class="framework-content">
        <img
          src="../static/1f3d97ba-fd1d-47aa-afaa-c4677107b300.png"
          alt=""
          class="cont-img"
        />
      </div>
    </div>
    <!-- 常用开票场景 -->
    <div class="page-module-wrap">
      <p class="hot-title1 mart" style="color: #fff">常用开票场景</p>
      <div class="xuanimg">
        <img
          src="../static/9d4097e7-6fb4-45d1-9dff-4f52b2c5df4d.png"
          alt=""
          v-if="xuna == 0"
        />
        <img
          src="../static/50a89409-7690-47c7-b22c-bd1c1b02e403.png"
          alt=""
          v-if="xuna == 1"
        />
        <img
          src="../static/3de1894c-4f1a-4085-870f-d160cc86fe34.png"
          alt=""
          v-if="xuna == 2"
        />
        <img
          src="../static/b0f07167-e31c-434e-bd1b-bcf6b0850632.png"
          alt=""
          v-if="xuna == 3"
        />
        <img
          src="../static/a49e9db1-b87e-4c88-b269-d83d6138d554.png"
          alt=""
          v-if="xuna == 4"
        />
        <img
          src="../static/ff68f4c0-48ab-4c39-b81d-be53e16ff249.png"
          alt=""
          v-if="xuna == 5"
        />
      </div>

      <div class="flxoss">
        <div
          v-for="(item, i) in mood.tapmood"
          :key="i"
          :class="xuna == i ? 'xuanbox' : 'xuanbox1'"
          @click="dianji(i)"
        >
          {{ item.title }}
        </div>
      </div>
    </div>
    <footers />
  </div>
</template>

<script>
import solviedata from "./solvie.data.js";
import heard from "@/components/heard";
import footers from "@/components/footer";
export default {
  components: {
    heard,
    footers,
  },
  data() {
    return {
      topshow: false,
      cont: 2,
      mood: solviedata,
      xuna: 0,
    };
  },
  mounted() {
    window.addEventListener("scroll", this.scrollHandle);
  },
  methods: {
    dianji(e) {
      this.xuna = e;
    },
    scrollHandle(e) {
      let top = e.srcElement.scrollingElement.scrollTop; // 获取页面滚动高度
      if (top >= 500) {
        this.topshow = true;
      } else {
        this.topshow = false;
      }
    },
  },
};
</script>

<style scoped>
.count {
  font-size: 30px;
  color: #fff;
  margin: 0;
  margin-top: 10px;
}
.jiejue {
  font-size: 70px;
  color: #fff;
  margin: 0;
}
.xuanimg {
  width: 1200px;
  margin: 0 auto;
  margin-bottom: 20px;
}
.flxoss {
  display: flex;
  width: 1200px;
  justify-content: space-between;
  margin: 0 auto;
}
.xuanbox1 {
  width: 183px;
  height: 74px;
  background: #fff;
  line-height: 74px;
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.xuanbox {
  width: 183px;
  height: 74px;
  background: #5486fe;
  color: #fff;
  line-height: 74px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  font-size: 16px;
}
.mart {
  padding-top: 100px;
}
.page-module-wrap {
  background: url(https://www.pdd-fapiao.com/images/solutions/pddweb_hztg_kpcjbg@2x.png);
  width: 1915px;
  height: 870px;
  padding-bottom: 50px;
}
.cont-img {
  width: 90%;
  width: 1533px;
  display: block;
  margin: 80px auto 20px;
}
.hot-text {
  margin-top: 159px;
  margin-left: 24px;
}
.flxss {
  display: flex;

  width: 100%;
  justify-content: center;
}
.flxss div {
  margin: 0;
}
.flxss p {
  margin: 0;
}
.case-item1 {
  margin-right: 10px;
  width: 443px;
  height: 210px;
  background-size: 100%;
}

.case-item {
  margin-right: 10px;
  width: 292px;
  height: 234px;
  background-size: 100% 100%;
}
.case-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  top: 24px;
  left: 31px;
}
.case-desc {
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
  max-width: 250px;
  position: relative;
  top: 31px;
  left: 43px;
}
.hot {
  width: 100%;
  min-width: 1200px;
  padding: 40px 0;
}
.hot-title1 {
  font-size: 44px;
  color: #333;
  line-height: 1.5;
  text-align: center;
}

.hot-main {
  background: url("../static/6373956f-28cd-4022-836c-716851f61d57.jpg");
  width: 294px;
  height: 455px;
  background-size: 100% 100%;
}

.hot-title {
  font-size: 24px;
  color: #fff;
}
.hot-desc {
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0;
  color: #fff;
}
.module-wrap {
  width: 100%;
  min-width: 1200px;
}
.module-title1 {
  font-size: 44px;
  color: #333;
  line-height: 1.5;
  text-align: center;
}
.module-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 40px;
  width: 100%;
  max-width: 1200px;
  min-width: 1200px;
  margin: 0 auto;
}
.module-item {
  width: 25%;
  padding-right: 20px;
  box-sizing: border-box;
  padding: 10px 0;
  margin-bottom: 30px;
  text-align: center;
}
.module-icon {
  width: 64px;
}
.module-text {
  padding: 0 50px;
}
.module-title {
  font-size: 22px;
  color: #333;
  line-height: 1.5;
  padding: 5px 0;
}
.module-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  text-align: left;
}
.productimg {
  width: 100%;
  height: 630px;
  background: url(https://img-qn.51miz.com/Element/00/81/30/85/5d14b039_E813085_94fdc62e.jpg!/quality/90/unsharp/true/compress/true/fwfh/640x420);
  background-size: 100% 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flx {
  display: flex;
  align-items: center;
  justify-content: center;
}
.absi {
  margin-top: -3%;
}
.dibosg {
  width: 400px;
  height: 110px;
  background-color: #5486fe;
}
.dibosg1 {
  width: 400px;
  height: 110px;
  background-color: #3a65cd;
}
.mar {
  margin: 20px;
  font-size: 20px;
  font-weight: 500;
  color: #333;
}
.item-icon {
  background: #fff;
  width: 32px;
  padding: 16px;
  border-radius: 50%;
  margin-right: 8px;
}
.item-value {
  color: #fff;
  font-size: 32px;
}
.item-name {
  color: #fff;
  font-size: 14px;
}
</style>